#include "qnewpagedialog.h"
#include "ui_qnewpagedialog.h"

QNewPageDialog::QNewPageDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::QNewPageDialog),
    m_ret(0)
{
    ui->setupUi(this);
}

QNewPageDialog::~QNewPageDialog()
{
    delete ui;
}

int QNewPageDialog::get_ret()
{
    return m_ret;
}

void QNewPageDialog::on_pushButton_clicked()
{
    m_ret=1;
    close();
}

void QNewPageDialog::on_pushButton_2_clicked()
{
    m_ret=2;
    close();
}

void QNewPageDialog::on_pushButton_3_clicked()
{
    m_ret=3;
    close();
}
